package com.ydkj.a37e_mall.Classes.Model.Response;

import java.util.List;

/**
 * Created by Administrator on 2017/2/9.
 */

public class ActivitytypeResp {

    /**
     * errno : 000
     * errmsg :
     * result : {"data":[{"id":"3","name":"热卖产品","activities":"0","created_at":"2017-02-07 22:32:24","updated_at":"2017-02-08 21:33:53"},{"id":"2","name":"热卖精选","activities":"0","created_at":"2017-02-07 22:32:13","updated_at":"2017-02-08 21:11:40"},{"id":"1","name":"特价产品","activities":"3","created_at":"2017-02-07 22:31:23","updated_at":"2017-02-08 21:57:43"}],"total_page":1,"current_page":1,"total":"3","access_token":""}
     */

    private String errno;
    private String errmsg;
    private ResultEntity result;

    public String getErrno() {
        return errno;
    }

    public void setErrno(String errno) {
        this.errno = errno;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public ResultEntity getResult() {
        return result;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public static class ResultEntity {
        /**
         * data : [{"id":"3","name":"热卖产品","activities":"0","created_at":"2017-02-07 22:32:24","updated_at":"2017-02-08 21:33:53"},{"id":"2","name":"热卖精选","activities":"0","created_at":"2017-02-07 22:32:13","updated_at":"2017-02-08 21:11:40"},{"id":"1","name":"特价产品","activities":"3","created_at":"2017-02-07 22:31:23","updated_at":"2017-02-08 21:57:43"}]
         * total_page : 1
         * current_page : 1
         * total : 3
         * access_token :
         */

        private int total_page;
        private int current_page;
        private String total;
        private String access_token;
        private List<DataEntity> data;

        public int getTotal_page() {
            return total_page;
        }

        public void setTotal_page(int total_page) {
            this.total_page = total_page;
        }

        public int getCurrent_page() {
            return current_page;
        }

        public void setCurrent_page(int current_page) {
            this.current_page = current_page;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public static class DataEntity {
            /**
             * id : 3
             * name : 热卖产品
             * activities : 0
             * created_at : 2017-02-07 22:32:24
             * updated_at : 2017-02-08 21:33:53
             */

            private String id;
            private String name;
            private String activities;
            private String created_at;
            private String updated_at;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getActivities() {
                return activities;
            }

            public void setActivities(String activities) {
                this.activities = activities;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public String getUpdated_at() {
                return updated_at;
            }

            public void setUpdated_at(String updated_at) {
                this.updated_at = updated_at;
            }
        }
    }
}
